/* Lac Viet ERP                                                
 * Copyright (c) 2013 Lac Viet                                 
 * http://www.lacviet.com.vn                                   
 *=============================================================
 * File name            : IV_tblItemLists.cs         
 * Created by           : Auto - 04/23/2014 15:03:45                     
 * Last modify          : Auto - 04/23/2014 15:03:45                     
 * Version              : 1.0                                  
 * ============================================================
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LineOfBusiness.Poco
{
	[Serializable]
	public partial class IV_tblItemLists : BaseEntity
	{
		public IV_tblItemLists()
		{
            this.NetWeight = 0;
		}

	    #region Properties

		private string _ItemID;

        [Key]
		[RegularExpression(@"[a-zA-Z0-9_-]*")]
		[Required]
        [MaxLength(20)]
        public string ItemID 
		{ 
			get
			{
                return _ItemID;
			}
			set 
			{ 
                _ItemID = value;
			} 
		}

		private string _BarcodeID;
        [MaxLength(20)]
        public string BarcodeID 
		{ 
			get
			{
                return _BarcodeID;
			}
			set 
			{ 
                _BarcodeID = value;
			} 
		}

		private string _ItemName;
		[Required]
        [MaxLength(100)]
        public string ItemName 
		{ 
			get
			{
                return _ItemName;
			}
			set 
			{ 
                _ItemName = value;
			} 
		}

		private string _ItemGroupID;
		[Required]
        [MaxLength(20)]
        public string ItemGroupID 
		{ 
			get
			{
                return _ItemGroupID;
			}
			set 
			{ 
                _ItemGroupID = value;
			} 
		}

		private string _Notes;
        [MaxLength(200)]
        public string Notes 
		{ 
			get
			{
                return _Notes;
			}
			set 
			{ 
                _Notes = value;
			} 
		}

		private decimal _NetWeight;
		[Required]
        public decimal NetWeight 
		{ 
			get
			{
                return _NetWeight;
			}
			set 
			{ 
                _NetWeight = value;
			} 
		}

		private string _Size;
        [MaxLength(20)]
        public string Size 
		{ 
			get
			{
                return _Size;
			}
			set 
			{ 
                _Size = value;
			} 
		}

		private string _Color;
        [MaxLength(20)]
        public string Color 
		{ 
			get
			{
                return _Color;
			}
			set 
			{ 
                _Color = value;
			} 
		}

		private byte[] _Image;
        [MaxLength(50)]
        public byte[] Image 
		{ 
			get
			{
                return _Image;
			}
			set 
			{ 
                _Image = value;
			} 
		}

		private string _ModelID2D;
        [MaxLength(20)]
        public string ModelID2D 
		{ 
			get
			{
                return _ModelID2D;
			}
			set 
			{ 
                _ModelID2D = value;
			} 
		}

		private string _ModelID3D;
        [MaxLength(20)]
        public string ModelID3D 
		{ 
			get
			{
                return _ModelID3D;
			}
			set 
			{ 
                _ModelID3D = value;
			} 
		}

		private string _Mold;
        [MaxLength(20)]
        public string Mold 
		{ 
			get
			{
                return _Mold;
			}
			set 
			{ 
                _Mold = value;
			} 
		}

		private string _ItemIDSales;
        [MaxLength(20)]
        public string ItemIDSales 
		{ 
			get
			{
                return _ItemIDSales;
			}
			set 
			{ 
                _ItemIDSales = value;
			} 
		}

		private string _ItemType;
		[Required]
        [MaxLength(1)]
        public string ItemType 
		{ 
			get
			{
                return _ItemType;
			}
			set 
			{ 
                _ItemType = value;
			} 
		}

		private string _GoldAgeID;
        [MaxLength(20)]
        public string GoldAgeID 
		{ 
			get
			{
                return _GoldAgeID;
			}
			set 
			{ 
                _GoldAgeID = value;
			} 
		}

		private DateTime? _CreatedDate;
        public DateTime? CreatedDate 
		{ 
			get
			{
                return _CreatedDate;
			}
			set 
			{ 
                _CreatedDate = value;
			} 
		}

		private string _UserID;
        [MaxLength(20)]
        public string UserID 
		{ 
			get
			{
                return _UserID;
			}
			set 
			{ 
                _UserID = value;
			} 
		}

		private string _InventUMID;
        [MaxLength(20)]
        public string InventUMID 
		{ 
			get
			{
                return _InventUMID;
			}
			set 
			{ 
                _InventUMID = value;
			} 
		}
		/// <summary>
        /// Column: CF_tblGoldAge.GoldAgeID
        /// </summary>
		public CF_tblGoldAge CF_tblGoldAge { get;set; }

		/// <summary>
        /// Column: IV_tblTransferListsLines.ItemID
        /// </summary>
		public ICollection<IV_tblTransferListsLines> IV_tblTransferListsLines { get;set; }

		/// <summary>
        /// Column: MO_tblModels.ItemID
        /// </summary>
		public ICollection<MO_tblModels> MO_tblModels { get;set; }

		/// <summary>
        /// Column: SR_tblAttachItem.ItemID
        /// </summary>
		public ICollection<SR_tblAttachItem> SR_tblAttachItem { get;set; }

		/// <summary>
        /// Column: SR_tblSalesOrdersLines.ItemID
        /// </summary>
		public ICollection<SR_tblSalesOrdersLines> SR_tblSalesOrdersLines { get;set; }

		/// <summary>
        /// Column: IV_tblItemGroupList.ItemGroupID
        /// </summary>
		public IV_tblItemGroupList IV_tblItemGroupList { get;set; }


        #endregion
	}
}
